﻿<ds:SlView x:Class="SmartSpace.Silverlight.Shell.LoadingView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:ds="clr-namespace:SmartSpace.Silverlight;assembly=SmartSpace.Silverlight"
    mc:Ignorable="d"
    d:DesignHeight="640" d:DesignWidth="480">
    <ds:SlView.Resources>

        <Storyboard x:Name="m_storyboardLoading">
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="m_loading1">
                <EasingDoubleKeyFrame KeyTime="0:0:0" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="m_loading2">
                <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.2" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="m_loading3">
                <EasingDoubleKeyFrame KeyTime="0:0:0.4" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.4" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="m_loading4">
                <EasingDoubleKeyFrame KeyTime="0:0:0.6" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.5" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.Rotation)" Storyboard.TargetName="m_loading5">
                <EasingDoubleKeyFrame KeyTime="0:0:0.8" Value="0"/>
                <EasingDoubleKeyFrame KeyTime="0:0:1.8" Value="360"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
    </ds:SlView.Resources>
    <Grid VerticalAlignment="Center" HorizontalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">

            <Button Name="m_loading1" Content="数" Width="40" Height="40" FontSize="25" RenderTransformOrigin="0.5,0.5" Margin="3" >
                <Button.RenderTransform>
                    <CompositeTransform TranslateX="0" TranslateY="0"/>
                </Button.RenderTransform>
            </Button>
            <Button Name="m_loading2" Content="据" Width="40" Height="40" FontSize="25" RenderTransformOrigin="0.5,0.5" Margin="3" >
                <Button.RenderTransform>
                    <CompositeTransform TranslateX="0" TranslateY="0"/>
                </Button.RenderTransform>
            </Button>
            <Button Name="m_loading3" Content="加" Width="40" Height="40" FontSize="25" RenderTransformOrigin="0.5,0.5" Margin="3" >
                <Button.RenderTransform>
                    <CompositeTransform TranslateX="0" TranslateY="0"/>
                </Button.RenderTransform>
            </Button>
            <Button Name="m_loading4" Content="载" Width="40" Height="40" FontSize="25" RenderTransformOrigin="0.5,0.5" Margin="3" >
                <Button.RenderTransform>
                    <CompositeTransform TranslateX="0" TranslateY="0"/>
                </Button.RenderTransform>
            </Button>
            <Button Name="m_loading5" Content="中" Width="40" Height="40" FontSize="25" RenderTransformOrigin="0.5,0.5" Margin="3" >
                <Button.RenderTransform>
                    <CompositeTransform TranslateX="0" TranslateY="0"/>
                </Button.RenderTransform>
            </Button>
        </StackPanel>
        <ProgressBar Name="m_progressBar" Grid.Row="1" Height="10" HorizontalAlignment="Stretch" Margin="50,10,50,10" />
        <TextBlock Name="m_textMessage" Grid.Row="2" Text="读取提示" HorizontalAlignment="Center" FontSize="12" />
    </Grid>
</ds:SlView>
